/*******************************************************************************
 * CBNewsViewController.h
 * ComicsBlog
 *
 * Adrien Bougouin <adrien.bougouin@gmail.com>
 */

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "../model/CBNews.h"

#define CBNewsBaseURL      @"http://www.comicsblog.fr/"
#define CBNewsWebPageHeader @"<head> <link href=\"http://fonts.googleapis.com/css?family=Francois+One\" rel=\"stylesheet\" type=\"text/css\"><link href=\"http://www.comicsblog.fr/mobile/style_app_iphone.css\" rel=\"StyleSheet\" type=\"text/css\"><script type=\"text/javascript\">function audioCallback(){var iframe = document.createElement(\"IFRAME\");iframe.setAttribute(\"src\", \"js-frame:audioCallback\");document.documentElement.appendChild(iframe);iframe.parentNode.removeChild(iframe);iframe = null;}</script></head>"

@interface CBNewsViewController : UIViewController <UIWebViewDelegate> {
  @private
    UIWebView *_newsView;
    NSUInteger _newsIdentifier;
    NSString  *_htmlString;
}


@property(nonatomic,
          readonly,
          getter=newsIdentifier) NSUInteger _newsIdentifier;
@property(nonatomic,
          readonly,
          getter=newsView) UIWebView *_newsView;

- (id) initWithNews:(CBNews *) news;
- (void) audioCallback;

@end

